package cn.findviewbydream.druid;

import com.alibaba.druid.support.http.StatViewServlet;

import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;

/**********************************
 * 工程：cn.findviewbydream.dto
 * 作者：白雨濃 evil
 * 时间：17-4-17 下午3:47
 * 邮箱：evilbai@foxmail.com
 * 内容：Druid监控
 **********************************/
@SuppressWarnings("serial")
@WebServlet(urlPatterns = "/db/*",
        initParams = {
                @WebInitParam(name = "allow", value = ""),// IP白名单 (没有配置或者为空，则允许所有访问)
                @WebInitParam(name = "loginUsername", value = "evil"),// 用户名
                @WebInitParam(name = "loginPassword", value = "evil"),// 密码
                @WebInitParam(name = "resetEnable", value = "false")// 禁用HTML页面上的“Reset All”功能
        })
public class DruidStatViewServlet extends StatViewServlet
{

}